<?php
/* @var $this SiteController */

$this->pageTitle=Yii::app()->name;
?>
<div class="navbar navbar-default">
	<div class="container">
		<span class="glyphicon glyphicon-search"></span>
	</div>
	
	<form class="form-group" role="form" action="<?php echo Yii::app()->request->baseUrl; ?>/notification/search" method="post" accept-charset="utf-8">
		<table>
		<td>
			<p class="navbar-brand">发送人</p>
		</td>
		<td>
			<select name="sender" class="form-control">
				<option value="All">所有</option>
				<option value="1">教师</option>
				<option value="2">学校</option>
				<option value="3">管理员</option>
			</select>
		</td>
		
		<td>
			<p class="navbar-brand">关键字</p>
		</td>
		<td>
			<input type="text" class="form-control">
		</td>
		
		<td>
			<button type="submit" class="btn btn-default" style="margin-left:15px">搜索</button>
		</td>
		</table>
	</form>
</div>

<div class="navbar navbar-default">
	<table class="table table-hover">
		<tr>
			<td>#</td>
			<td>标题</td>
			<td>发送人</td>
			<td>内容</td>
			<td>状态</td>
		</tr>
		<?php echo $this->getMyMessageList();?>
	</table>
</div>